<%@ page language="java" contentType="text/html; charset=EUC-KR" pageEncoding="EUC-KR"%>
<%@ page import="kr.co.chat.util.ChatDB" %>
<%@ page import="kr.co.chat.util.ChatMessage" %>
<%@ page import="java.util.Date" %>
<%
String nickName = request.getParameter("nickName");
String message = request.getParameter("message");

ChatMessage chatMsg = new ChatMessage();

chatMsg.setMessage(message);
chatMsg.setNickName(nickName);
chatMsg.setRegisterDate(new Date());

ChatDB.getInstance().addMsg(chatMsg);
%>